//
//  Tobacco.h
//  OC1_类和对象课后作业
//
//  Created by dllo on 15/10/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Tobacco : NSObject


{

    @public
    NSString *_name;
    NSInteger _price;

}
-(void)info;

-(void)buy;

-(id)initWithName:(NSString *)name price:(NSInteger)price;

-(NSString *)name;

-(void)setName:(NSString *)name;

-(NSInteger)price;

-(void)setPrice:(NSInteger)price;


+ (id)tobaccoWithName:(NSString *)name price:(NSInteger)price;



@end
